<?php
require 'common.inc.php';
//遍历获取所有邮箱管理模块下的信息
$result=$db->query("SELECT * FROM {$DT_PRE}email_user_copy where pushstatus=3 or pushstatus=4  ORDER BY itemid");
$curr_time = time();
sleep(rand(0,10));
while($user = $db->fetch_array($result)) {
         if($user['pushemail']){
           $emails =  explode(';',$user['email']);
            foreach ($emails as $email){
	            $resultf=$db->query("select title,password from {$DT_PRE}fsemail_38 where status=3 order by rand() limit 1");
                $fsemail= $db->fetch_array($resultf);
                $DT['smtp_user'] = $fsemail['title'];
				$DT['smtp_pass'] = $fsemail['password'];
				echo $fsemail['title'];exit;
				$content="ceshifasong";
				$sender='admin@china-hxzb.com';
				//0代表发送失败，1代表发送成功
				//$rs_send_mail = send_mail($email, $title, $content, $sender);
                echo $email."<br>";
			}
        
         }
}


?>
